#include <iostream>
#include "Date.h"
void Date::read(){
    int x, y, z;
	std::cout << "请依次输入年，月，日" << std::endl;
	std::cin >> x >> y >> z;
	this->YYYY = x;
	this->MM = y;
	this->DD = z;
}
void Date::init(int year,int mon,int day){
    this->YYYY=year;
    this->MM=mon;
    this->DD=day;
}
void Date::init(Date d_input){
    this->YYYY=d_input.YYYY;
    this->MM=d_input.MM;
    this->DD=d_input.DD;
}
void Date::print(){
    std::cout<<this->YYYY<<'-'<<this->MM<<'-'<<this->DD<<std::endl;
}
// #include"Date.h"
// #include<iostream>
// using namespace std;
	
// void Date::read()
// {
// 	int x, y, z;
// 	cout << "请依次输入年，月，日" << endl;
// 	cin >> x >> y >> z;
// 	this->year = x;
// 	this->mon = y;
// 	this->day = z;
// }
// void Date::print()
// {
// 	printf("%04d %02d %02d\n", this->year, this->mon, this->day);
// }
// void Date::init()
// {
// 	this->year = 0;
// 	this->mon = 0;
// 	this->day = 0;
// }